import { createApp } from 'vue';
import './style.css';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import router from './router';
import App from './App.vue';
import {createPinia} from 'pinia'
//导入 persist 的 createPersistedState函数
import { createPersistedState } from 'pinia-persistedstate-plugin'

const app = createApp(App);
const pinia = createPinia();

//创建一个 persit 实例
const persist = createPersistedState();
//在 pinia 中，使用 persist
pinia.use(persist);

app.use(ElementPlus);
app.use(router);
app.use(pinia)

app.mount('#app');
